home *** CD-ROM | disk | FTP | other *** search
- head 1.10;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @@;
-
-
- 1.10
- date 90.02.20.11.50.09; author douglis; state Exp;
- branches ;
- next 1.9;
-
- 1.9
- date 89.11.07.23.43.06; author rab; state Exp;
- branches ;
- next 1.8;
-
- 1.8
- date 88.11.23.17.28.13; author ouster; state Exp;
- branches ;
- next 1.7;
-
- 1.7
- date 88.10.26.16.29.39; author ouster; state Exp;
- branches ;
- next 1.6;
-
- 1.6
- date 88.08.20.11.35.50; author ouster; state Exp;
- branches ;
- next 1.5;
-
- 1.5
- date 88.08.18.15.20.42; author ouster; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 88.07.27.17.35.52; author ouster; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 88.07.13.15.57.23; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.07.13.10.26.14; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.06.21.16.04.42; author ouster; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.10
- log
- @tried to add some consistency to ::/: operators, and fixed tve's TYPE==personal complaint
- @
- text
- @#
- # Included makefile for managing a directory containing only public
- # header file sources.
- #
- # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.9 89/11/07 23:43:06 rab Exp $ SPRITE (Berkeley)
- #
- # The makefile that includes this one should already have defined the
- # following variables:
- # HDRS all header files (all of which are public)
- # INCLUDEDIR place to install public header files
- # SUBDIRS list of subdirectories that contain additional
- # related header files (used in "make mkmf").
- #
- # Optional variables that may be defined by the invoker:
- # INSTALLFLAGS additional flags to pass to install scripts.
- #
-
- #
- # System programs -- assign conditionally so they may be redefined in
- # including makefile
- #
- BINDIR = /sprite/cmds.$(MACHINE)
-
- CHGRP ?= $(BINDIR)/chgrp
- CHMOD ?= $(BINDIR)/chmod
- CHOWN ?= $(BINDIR)/chown
- CP ?= $(BINDIR)/cp
- ECHO ?= $(BINDIR)/echo
- MV ?= $(BINDIR)/mv
- RM ?= $(BINDIR)/rm
- UPDATE ?= $(BINDIR)/update
-
- INSTALLFLAGS ?=
-
- .MAKEFLAGS : -C
-
- #
- # MAKEINSTALLHDRS usage:
- # <target> : MAKEINSTALLHDRS
- # All of the public headers files get updated to INCLUDEDIR.
- #
- MAKEINSTALLHDRS : .USE .SILENT
- #if !empty(HDRS)
- $(UPDATE) -l -m 444 -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
- #endif
-
- #ifndef no_targets
-
- default : # Says nothing, does nothing. MAKEINSTALLHDRS
-
- clean !
- $(RM) -f *~
-
- install installhdrs :: MAKEINSTALLHDRS
-
- installworld :: install .MAKE .SILENT
- #if !empty(SUBDIRS)
- for i in $(SUBDIRS); do
- echo %%% ${i} %%%
- (cd $i; pmake $(.TARGET))
- done
- #endif
-
- mkmf : .MAKE .SILENT
- #if !empty(SUBDIRS)
- for i in $(SUBDIRS); do
- echo %%% ${i} %%%
- (cd $i; mkmf)
- done
- #endif
-
- dist : subdirs_d
- #if !empty(HDRS) && defined(DISTDIR) && !empty(DISTDIR)
- for i in $(HDRS); do
- $(UPDATE) $${i} $(DISTDIR)/$${i}
- done
- #endif
-
- subdirs_d:
- #if !empty(SUBDIRS) && defined(DISTDIR) && !empty(DISTDIR)
- for i in $(SUBDIRS); do
- echo %%% $${i} %%%
- #ifdef TM
- ( cd $${i}; $(MAKE) dist 'DISTDIR=$(DISTDIR)'/$${i} 'TM=$(TM)' )
- #else
- ( cd $${i}; $(MAKE) dist 'DISTDIR=$(DISTDIR)'/$${i} )
- #endif
- done
- #endif
-
- newtm : # Says nothing, does nothing.
-
- #endif no_targets
-
- #include <rdist.mk>
- @
-
-
- 1.9
- log
- @Added distribution stuff.
- @
- text
- @d5 1
- a5 1
- # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.8 88/11/23 17:28:13 ouster Exp Locker: rab $ SPRITE (Berkeley)
- d54 1
- a54 1
- install installhdrs : MAKEINSTALLHDRS
- d56 1
- a56 1
- installworld : install .MAKE .SILENT
- @
-
-
- 1.8
- log
- @Revisions to make "make newtm" work.
- @
- text
- @d5 1
- a5 1
- # $Header: /sprite/lib/pmake/RCS/hdrs.mk,v 1.7 88/10/26 16:29:39 ouster Exp Locker: ouster $ SPRITE (Berkeley)
- d58 1
- a58 2
- for i in $(SUBDIRS);
- do
- d66 1
- a66 2
- for i in $(SUBDIRS);
- do
- d69 19
- @
-
-
- 1.7
- log
- @Install hdrs with mode 444.
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.6 88/08/20 11:35:50 ouster Exp $ SPRITE (Berkeley)
- d49 1
- a49 1
- default: MAKEINSTALLHDRS
- d54 3
- a56 1
- mkmf : .MAKE .SILENT
- d60 2
- a61 2
- echo %%% ${i} %%%
- (cd $i; mkmf)
- d65 1
- a65 1
- install installhdrs : default .MAKE .SILENT
- d69 2
- a70 2
- echo %%% ${i} %%%
- (cd $i; pmake $(.TARGET))
- d73 2
- @
-
-
- 1.6
- log
- @Change update args: leave things writable, strip binaries, don't
- change owner to root.
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.5 88/08/18 15:20:42 ouster Exp $ SPRITE (Berkeley)
- d44 1
- a44 1
- $(UPDATE) -l -m 664 -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
- @
-
-
- 1.5
- log
- @Use new update, use current time when installing headers.
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.4 88/07/27 17:35:52 ouster Exp $ SPRITE (Berkeley)
- d44 1
- a44 1
- $(UPDATE) -l -m 444 -o root -t $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
- @
-
-
- 1.4
- log
- @Switch over to use new binary directory.
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.3 88/07/13 15:57:23 ouster Exp $ SPRITE (Berkeley)
- d31 1
- a31 1
- UPDATE ?= /sprite/cmds/update -i
- d44 1
- a44 1
- $(UPDATE) -l -m 444 -o root $(INSTALLFLAGS) $(HDRS) $(INCLUDEDIR)
- d49 2
- a50 3
- default: installhdrs
- installhdrs: MAKEINSTALLHDRS
- install: installhdrs
- d63 1
- a63 1
- recursive : installhdrs .MAKE .SILENT
- d68 1
- a68 1
- (cd $i; pmake recursive)
- @
-
-
- 1.3
- log
- @Use "-i" switch to update to be safe (until kernel bug gets fixed).
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.2 88/07/13 10:26:14 ouster Exp $ SPRITE (Berkeley)
- a17 2
- BINDIR = /sprite/cmds
-
- d22 2
- d31 1
- a31 1
- UPDATE ?= $(BINDIR)/update -i
- @
-
-
- 1.2
- log
- @Reverse send of "define_targets", replace with "no_targets".
- @
- text
- @d5 1
- a5 1
- # $Header: hdrs.mk,v 1.1 88/06/21 16:04:42 ouster Exp $ SPRITE (Berkeley)
- d31 1
- a31 1
- UPDATE ?= $(BINDIR)/update
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d5 1
- a5 1
- # $Header: library.mk,v 1.11 88/06/21 11:31:29 ouster Exp $ SPRITE (Berkeley)
- d47 1
- a47 1
- #ifdef define_targets
- d73 1
- a73 1
- #endif define_targets
- @
-